<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:include="navigation::nav">
</div>
<h2>排课管理</h2>
<hr>
<div style="display: flex">
    <div style="width: 70%">
        <table border="2px" width="120%" style="background-color: aliceblue">
            <tr th:each="x:${lists}">
                <td th:text="${x.getTeacher().getUid()}"></td>
                <td th:text="${x.getTeacher().getUname()}"></td>
                <td th:text="${x.getClz().getClzno()}"></td>
                <td th:text="${x.getClz().getClzname()}"></td>
                <td th:text="${x.getCourse().getCon()}"></td>
                <td th:text="${x.getCourse().getCname()}"></td>
                <th> <a th:href="'/task/del/'+${x.getKid()}">删除</a></th>
            </tr>
        </table>
        <h2 th:if="${actions!=null}" th:text="${actions}"></h2>
    </div>
    <div style="width: 40%;margin-left: 30%">
        <button><a href="/task/show">安排新的排课</a></button>
        <hr>
        <form method="post" action="/task/add">
            教师:<select name="teacher.uid">
            <option th:each="i:${teacher}"
                    th:text="${i.getUname()}"
                    th:value="${i.getUid()}">
            </option>
        </select><br>
            班级：<select name="clz.clzno">
            <option th:each="j:${clzs}"
                    th:text="${j.getClzname()}"
                    th:value="${j.getClzno()}">
            </option>
        </select><br>
            课程:<select name="course.con">
            <option th:each="o:${courses}"
                    th:text="${o.getCname()}"
                    th:value="${o.getCon()}">
            </option>
        </select><br>
            <input type="submit" th:value="添加排课">
        </form>
    </div>
</div>
</body>
</html>